home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsISelectionPrivate.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  12KB  |  275 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISelectionPrivate.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISelectionPrivate_h__
  6. #define __gen_nsISelectionPrivate_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsISelectionListener_h__
  14. #include "nsISelectionListener.h"
  15. #endif
  16.  
  17. #ifndef __gen_nsIEnumerator_h__
  18. #include "nsIEnumerator.h"
  19. #endif
  20.  
  21. /* For IDL files that don't want to include root IDL files. */
  22. #ifndef NS_NO_VTABLE
  23. #define NS_NO_VTABLE
  24. #endif
  25. class nsIFrameSelection; /* forward declaration */
  26.  
  27. class nsIDOMRange; /* forward declaration */
  28.  
  29. class nsISelectionListener; /* forward declaration */
  30.  
  31. class nsIFrame;
  32. class nsIPresShell;
  33. struct nsPoint;
  34.  
  35. /* starting interface:    nsISelectionPrivate */
  36. #define NS_ISELECTIONPRIVATE_IID_STR "3225ca54-d7e1-4ff5-8ee9-091b0bfcda1f"
  37.  
  38. #define NS_ISELECTIONPRIVATE_IID \
  39.   {0x3225ca54, 0xd7e1, 0x4ff5, \
  40.     { 0x8e, 0xe9, 0x09, 0x1b, 0x0b, 0xfc, 0xda, 0x1f }}
  41.  
  42. class NS_NO_VTABLE nsISelectionPrivate : public nsISupports {
  43.  public: 
  44.  
  45.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISELECTIONPRIVATE_IID)
  46.  
  47.   enum { ENDOFPRECEDINGLINE = 0 };
  48.  
  49.   enum { STARTOFNEXTLINE = 1 };
  50.  
  51.   /* attribute boolean interlinePosition; */
  52.   NS_IMETHOD GetInterlinePosition(PRBool *aInterlinePosition) = 0;
  53.   NS_IMETHOD SetInterlinePosition(PRBool aInterlinePosition) = 0;
  54.  
  55.   /* void startBatchChanges (); */
  56.   NS_IMETHOD StartBatchChanges(void) = 0;
  57.  
  58.   /* void endBatchChanges (); */
  59.   NS_IMETHOD EndBatchChanges(void) = 0;
  60.  
  61.   /* nsIEnumerator getEnumerator (); */
  62.   NS_IMETHOD GetEnumerator(nsIEnumerator **_retval) = 0;
  63.  
  64.   /* wstring toStringWithFormat (in string formatType, in unsigned long flags, in PRInt32 wrapColumn); */
  65.   NS_IMETHOD ToStringWithFormat(const char *formatType, PRUint32 flags, PRInt32 wrapColumn, PRUnichar **_retval) = 0;
  66.  
  67.   /* void addSelectionListener (in nsISelectionListener newListener); */
  68.   NS_IMETHOD AddSelectionListener(nsISelectionListener *newListener) = 0;
  69.  
  70.   /* void removeSelectionListener (in nsISelectionListener listenerToRemove); */
  71.   NS_IMETHOD RemoveSelectionListener(nsISelectionListener *listenerToRemove) = 0;
  72.  
  73.   enum { TABLESELECTION_NONE = 0 };
  74.  
  75.   enum { TABLESELECTION_CELL = 1 };
  76.  
  77.   enum { TABLESELECTION_ROW = 2 };
  78.  
  79.   enum { TABLESELECTION_COLUMN = 3 };
  80.  
  81.   enum { TABLESELECTION_TABLE = 4 };
  82.  
  83.   enum { TABLESELECTION_ALLCELLS = 5 };
  84.  
  85.   /** Test if supplied range points to a single table element:
  86.       *    Result is one of above constants. "None" means
  87.       *    a table element isn't selected.
  88.       */
  89.   /* long getTableSelectionType (in nsIDOMRange range); */
  90.   NS_IMETHOD GetTableSelectionType(nsIDOMRange *range, PRInt32 *_retval) = 0;
  91.  
  92.   /* [noscript] void setPresShell (in nsIPresShell aPresShell); */
  93.   NS_IMETHOD SetPresShell(nsIPresShell * aPresShell) = 0;
  94.  
  95.   /* [noscript] attribute boolean canCacheFrameOffset; */
  96.   NS_IMETHOD GetCanCacheFrameOffset(PRBool *aCanCacheFrameOffset) = 0;
  97.   NS_IMETHOD SetCanCacheFrameOffset(PRBool aCanCacheFrameOffset) = 0;
  98.  
  99.   /* [noscript] void getCachedFrameOffset (in nsIFrame aFrame, in PRInt32 inOffset, in nsPointRef aPoint); */
  100.   NS_IMETHOD GetCachedFrameOffset(nsIFrame * aFrame, PRInt32 inOffset, nsPoint & aPoint) = 0;
  101.  
  102.   /* [noscript] nsIFrameSelection getFrameSelection (); */
  103.   NS_IMETHOD GetFrameSelection(nsIFrameSelection **_retval) = 0;
  104.  
  105. };
  106.  
  107. /* Use this macro when declaring classes that implement this interface. */
  108. #define NS_DECL_NSISELECTIONPRIVATE \
  109.   NS_IMETHOD GetInterlinePosition(PRBool *aInterlinePosition); \
  110.   NS_IMETHOD SetInterlinePosition(PRBool aInterlinePosition); \
  111.   NS_IMETHOD StartBatchChanges(void); \
  112.   NS_IMETHOD EndBatchChanges(void); \
  113.   NS_IMETHOD GetEnumerator(nsIEnumerator **_retval); \
  114.   NS_IMETHOD ToStringWithFormat(const char *formatType, PRUint32 flags, PRInt32 wrapColumn, PRUnichar **_retval); \
  115.   NS_IMETHOD AddSelectionListener(nsISelectionListener *newListener); \
  116.   NS_IMETHOD RemoveSelectionListener(nsISelectionListener *listenerToRemove); \
  117.   NS_IMETHOD GetTableSelectionType(nsIDOMRange *range, PRInt32 *_retval); \
  118.   NS_IMETHOD SetPresShell(nsIPresShell * aPresShell); \
  119.   NS_IMETHOD GetCanCacheFrameOffset(PRBool *aCanCacheFrameOffset); \
  120.   NS_IMETHOD SetCanCacheFrameOffset(PRBool aCanCacheFrameOffset); \
  121.   NS_IMETHOD GetCachedFrameOffset(nsIFrame * aFrame, PRInt32 inOffset, nsPoint & aPoint); \
  122.   NS_IMETHOD GetFrameSelection(nsIFrameSelection **_retval); 
  123.  
  124. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  125. #define NS_FORWARD_NSISELECTIONPRIVATE(_to) \
  126.   NS_IMETHOD GetInterlinePosition(PRBool *aInterlinePosition) { return _to GetInterlinePosition(aInterlinePosition); } \
  127.   NS_IMETHOD SetInterlinePosition(PRBool aInterlinePosition) { return _to SetInterlinePosition(aInterlinePosition); } \
  128.   NS_IMETHOD StartBatchChanges(void) { return _to StartBatchChanges(); } \
  129.   NS_IMETHOD EndBatchChanges(void) { return _to EndBatchChanges(); } \
  130.   NS_IMETHOD GetEnumerator(nsIEnumerator **_retval) { return _to GetEnumerator(_retval); } \
  131.   NS_IMETHOD ToStringWithFormat(const char *formatType, PRUint32 flags, PRInt32 wrapColumn, PRUnichar **_retval) { return _to ToStringWithFormat(formatType, flags, wrapColumn, _retval); } \
  132.   NS_IMETHOD AddSelectionListener(nsISelectionListener *newListener) { return _to AddSelectionListener(newListener); } \
  133.   NS_IMETHOD RemoveSelectionListener(nsISelectionListener *listenerToRemove) { return _to RemoveSelectionListener(listenerToRemove); } \
  134.   NS_IMETHOD GetTableSelectionType(nsIDOMRange *range, PRInt32 *_retval) { return _to GetTableSelectionType(range, _retval); } \
  135.   NS_IMETHOD SetPresShell(nsIPresShell * aPresShell) { return _to SetPresShell(aPresShell); } \
  136.   NS_IMETHOD GetCanCacheFrameOffset(PRBool *aCanCacheFrameOffset) { return _to GetCanCacheFrameOffset(aCanCacheFrameOffset); } \
  137.   NS_IMETHOD SetCanCacheFrameOffset(PRBool aCanCacheFrameOffset) { return _to SetCanCacheFrameOffset(aCanCacheFrameOffset); } \
  138.   NS_IMETHOD GetCachedFrameOffset(nsIFrame * aFrame, PRInt32 inOffset, nsPoint & aPoint) { return _to GetCachedFrameOffset(aFrame, inOffset, aPoint); } \
  139.   NS_IMETHOD GetFrameSelection(nsIFrameSelection **_retval) { return _to GetFrameSelection(_retval); } 
  140.  
  141. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  142. #define NS_FORWARD_SAFE_NSISELECTIONPRIVATE(_to) \
  143.   NS_IMETHOD GetInterlinePosition(PRBool *aInterlinePosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterlinePosition(aInterlinePosition); } \
  144.   NS_IMETHOD SetInterlinePosition(PRBool aInterlinePosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInterlinePosition(aInterlinePosition); } \
  145.   NS_IMETHOD StartBatchChanges(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartBatchChanges(); } \
  146.   NS_IMETHOD EndBatchChanges(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndBatchChanges(); } \
  147.   NS_IMETHOD GetEnumerator(nsIEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnumerator(_retval); } \
  148.   NS_IMETHOD ToStringWithFormat(const char *formatType, PRUint32 flags, PRInt32 wrapColumn, PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToStringWithFormat(formatType, flags, wrapColumn, _retval); } \
  149.   NS_IMETHOD AddSelectionListener(nsISelectionListener *newListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSelectionListener(newListener); } \
  150.   NS_IMETHOD RemoveSelectionListener(nsISelectionListener *listenerToRemove) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveSelectionListener(listenerToRemove); } \
  151.   NS_IMETHOD GetTableSelectionType(nsIDOMRange *range, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTableSelectionType(range, _retval); } \
  152.   NS_IMETHOD SetPresShell(nsIPresShell * aPresShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPresShell(aPresShell); } \
  153.   NS_IMETHOD GetCanCacheFrameOffset(PRBool *aCanCacheFrameOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanCacheFrameOffset(aCanCacheFrameOffset); } \
  154.   NS_IMETHOD SetCanCacheFrameOffset(PRBool aCanCacheFrameOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanCacheFrameOffset(aCanCacheFrameOffset); } \
  155.   NS_IMETHOD GetCachedFrameOffset(nsIFrame * aFrame, PRInt32 inOffset, nsPoint & aPoint) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCachedFrameOffset(aFrame, inOffset, aPoint); } \
  156.   NS_IMETHOD GetFrameSelection(nsIFrameSelection **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameSelection(_retval); } 
  157.  
  158. #if 0
  159. /* Use the code below as a template for the implementation class for this interface. */
  160.  
  161. /* Header file */
  162. class nsSelectionPrivate : public nsISelectionPrivate
  163. {
  164. public:
  165.   NS_DECL_ISUPPORTS
  166.   NS_DECL_NSISELECTIONPRIVATE
  167.  
  168.   nsSelectionPrivate();
  169.  
  170. private:
  171.   ~nsSelectionPrivate();
  172.  
  173. protected:
  174.   /* additional members */
  175. };
  176.  
  177. /* Implementation file */
  178. NS_IMPL_ISUPPORTS1(nsSelectionPrivate, nsISelectionPrivate)
  179.  
  180. nsSelectionPrivate::nsSelectionPrivate()
  181. {
  182.   /* member initializers and constructor code */
  183. }
  184.  
  185. nsSelectionPrivate::~nsSelectionPrivate()
  186. {
  187.   /* destructor code */
  188. }
  189.  
  190. /* attribute boolean interlinePosition; */
  191. NS_IMETHODIMP nsSelectionPrivate::GetInterlinePosition(PRBool *aInterlinePosition)
  192. {
  193.     return NS_ERROR_NOT_IMPLEMENTED;
  194. }
  195. NS_IMETHODIMP nsSelectionPrivate::SetInterlinePosition(PRBool aInterlinePosition)
  196. {
  197.     return NS_ERROR_NOT_IMPLEMENTED;
  198. }
  199.  
  200. /* void startBatchChanges (); */
  201. NS_IMETHODIMP nsSelectionPrivate::StartBatchChanges()
  202. {
  203.     return NS_ERROR_NOT_IMPLEMENTED;
  204. }
  205.  
  206. /* void endBatchChanges (); */
  207. NS_IMETHODIMP nsSelectionPrivate::EndBatchChanges()
  208. {
  209.     return NS_ERROR_NOT_IMPLEMENTED;
  210. }
  211.  
  212. /* nsIEnumerator getEnumerator (); */
  213. NS_IMETHODIMP nsSelectionPrivate::GetEnumerator(nsIEnumerator **_retval)
  214. {
  215.     return NS_ERROR_NOT_IMPLEMENTED;
  216. }
  217.  
  218. /* wstring toStringWithFormat (in string formatType, in unsigned long flags, in PRInt32 wrapColumn); */
  219. NS_IMETHODIMP nsSelectionPrivate::ToStringWithFormat(const char *formatType, PRUint32 flags, PRInt32 wrapColumn, PRUnichar **_retval)
  220. {
  221.     return NS_ERROR_NOT_IMPLEMENTED;
  222. }
  223.  
  224. /* void addSelectionListener (in nsISelectionListener newListener); */
  225. NS_IMETHODIMP nsSelectionPrivate::AddSelectionListener(nsISelectionListener *newListener)
  226. {
  227.     return NS_ERROR_NOT_IMPLEMENTED;
  228. }
  229.  
  230. /* void removeSelectionListener (in nsISelectionListener listenerToRemove); */
  231. NS_IMETHODIMP nsSelectionPrivate::RemoveSelectionListener(nsISelectionListener *listenerToRemove)
  232. {
  233.     return NS_ERROR_NOT_IMPLEMENTED;
  234. }
  235.  
  236. /* long getTableSelectionType (in nsIDOMRange range); */
  237. NS_IMETHODIMP nsSelectionPrivate::GetTableSelectionType(nsIDOMRange *range, PRInt32 *_retval)
  238. {
  239.     return NS_ERROR_NOT_IMPLEMENTED;
  240. }
  241.  
  242. /* [noscript] void setPresShell (in nsIPresShell aPresShell); */
  243. NS_IMETHODIMP nsSelectionPrivate::SetPresShell(nsIPresShell * aPresShell)
  244. {
  245.     return NS_ERROR_NOT_IMPLEMENTED;
  246. }
  247.  
  248. /* [noscript] attribute boolean canCacheFrameOffset; */
  249. NS_IMETHODIMP nsSelectionPrivate::GetCanCacheFrameOffset(PRBool *aCanCacheFrameOffset)
  250. {
  251.     return NS_ERROR_NOT_IMPLEMENTED;
  252. }
  253. NS_IMETHODIMP nsSelectionPrivate::SetCanCacheFrameOffset(PRBool aCanCacheFrameOffset)
  254. {
  255.     return NS_ERROR_NOT_IMPLEMENTED;
  256. }
  257.  
  258. /* [noscript] void getCachedFrameOffset (in nsIFrame aFrame, in PRInt32 inOffset, in nsPointRef aPoint); */
  259. NS_IMETHODIMP nsSelectionPrivate::GetCachedFrameOffset(nsIFrame * aFrame, PRInt32 inOffset, nsPoint & aPoint)
  260. {
  261.     return NS_ERROR_NOT_IMPLEMENTED;
  262. }
  263.  
  264. /* [noscript] nsIFrameSelection getFrameSelection (); */
  265. NS_IMETHODIMP nsSelectionPrivate::GetFrameSelection(nsIFrameSelection **_retval)
  266. {
  267.     return NS_ERROR_NOT_IMPLEMENTED;
  268. }
  269.  
  270. /* End of implementation class template. */
  271. #endif
  272.  
  273.  
  274. #endif /* __gen_nsISelectionPrivate_h__ */
  275.